//
//  WatchDetailBaseModel_Info_IntroduceInfo.m
//  ZITHER
//
//  Created by imac on 2018暂无5暂无3.
//  Copyright © 2018年 MS1968. All rights reserved.
//

#import "WatchDetailBaseModel_Info_IntroduceInfo.h"
#define kIMAGE_URL_PREFIX @"http://mtime-1252014125.file.myqcloud.com"
#define kIMAGE_URL(url) kSTRING_FORMAT(@"%@%@",kIMAGE_URL_PREFIX, url)

@implementation WatchDetailBaseModel_Info_IntroduceInfo

- (NSArray<NSString *> *)gqPictureList {
    if (_gqPictureList.count == 0) {
        return @[];
    }
    // 添加图片URL前缀
    NSMutableArray<NSString *> *tempArrM = @[].mutableCopy;
    for (NSString *imageStr in _gqPictureList) {
        if (![tempArrM containsObject:kIMAGE_URL(imageStr)]) {
            [tempArrM addObject:kIMAGE_URL(imageStr)];
        }
    }
    return tempArrM.copy;
}
- (NSString *)dial_shape {
    if (!_dial_shape) {
        return @"暂无";
    }
    return _dial_shape;
}
- (NSString *)thickness {
    if (!_thickness) {
        return @"暂无";
    }
    return _thickness;
}
- (NSString *)zhen_pin {
    if (!_zhen_pin) {
        return @"暂无";
    }
    return _zhen_pin;
}

- (NSString *)jixin_type {
    if (!_jixin_type) {
        return @"暂无";
    }
    return _jixin_type;
}
- (NSString *)strap_color {
    if (!_strap_color) {
        return @"暂无";
    }
    return _strap_color;
}
- (NSString *)mirror_material {
    if (!_mirror_material) {
        return @"暂无";
    }
    return _mirror_material;
}

- (NSString *)bi_zhen {
    if (!_bi_zhen) {
        return @"暂无";
    }
    return _bi_zhen;
}
- (NSString *)diameter {
    if (!_diameter) {
        return @"暂无";
    }
    return _diameter;
}
- (NSString *)_crown_material {
    if (!_crown_material) {
        return @"暂无";
    }
    return _crown_material;
}
- (NSString *)through_back {
    if (!_through_back) {
        return @"暂无";
    }
    return _through_back;
}
- (NSString *)jixin_model {
    if (!_jixin_model) {
        return @"暂无";
    }
    return _jixin_model;
}
- (NSString *)battery_life {
    if (!_battery_life) {
        return @"暂无";
    }
    return _battery_life;
}
- (NSString *)alias {
    if (!_alias) {
        return @"暂无";
    }
    return _alias;
}
- (NSString *)waterproof {
    if (!_waterproof) {
        return @"暂无";
    }
    return _waterproof;
}
- (NSString *)jixin_diameter {
    if (!_jixin_diameter) {
        return @"暂无";
    }
    return _jixin_diameter;
}
- (NSString *)jixin_thickness {
    if (!_jixin_thickness || [_jixin_thickness isEqualToString:@""]) {
        return @"暂无";
    }
    return _jixin_thickness;
}

- (NSString *)buckle_material {
    if (!_buckle_material || [_buckle_material isEqualToString:@""]) {
        return @"暂无";
    }
    return _buckle_material;
}
- (NSString *)yousi {
    if (!_yousi || [_yousi isEqualToString:@""]) {
        return @"暂无";
    }
    return _yousi;
}
- (NSString *)weight {
    if (!_weight || [_weight isEqualToString:@""]) {
        return @"暂无";
    }
    return _weight;
}
- (NSString *)lingjian_num {
    if (!_lingjian_num) {
        return @"暂无";
    }
    return _lingjian_num;
}
- (NSString *)dial_color {
    if (!_dial_color) {
        return @"暂无";
    }
    return _dial_color;
}
- (NSString *)baoshi_num {
    if (!_baoshi_num) {
        return @"暂无";
    }
    return _baoshi_num;
}
- (NSString *)dial_material {
    if (!_dial_material) {
        return @"暂无";
    }
    return _dial_material;
}

- (NSString *)reserve_time {
    if (!_reserve_time) {
        return @"暂无";
    }
    return _reserve_time;
}
- (NSString *)buckle_type {
    if (!_buckle_type) {
        return @"暂无";
    }
    return _buckle_type;
}
- (NSString *)brand_story {
    if (!_brand_story) {
        return @"暂无";
    }
    return _brand_story;
}
- (NSString *)strap_material {
    if (!_strap_material) {
        return @"暂无";
    }
    return _strap_material;
}
- (NSString *)base_jixin {
    if (!_base_jixin) {
        return @"暂无";
    }
    return _base_jixin;
}
- (NSString *)case_material {
    if (!_case_material) {
        return @"暂无";
    }
    return _case_material;
}


- (NSString *)occasion {
    if ([_occasion isEqualToString:@"0"]) {
        return @"正装";
    } else if ([_occasion isEqualToString:@"1"]) {
        return @"运动";
    } else if ([_occasion isEqualToString:@"2"]) {
        return @"潜水";
    } else if ([_occasion isEqualToString:@"3"]) {
        return @"时尚";
    } else if ([_occasion isEqualToString:@"4"]) {
        return @"高奢收藏";
    } else if ([_occasion isEqualToString:@"5"]) {
        return @"情侣";
    }
    
    return _occasion;
}


- (NSString *)public_time {
    if ([_public_time isEqualToString:@"-1"]) {
        return @"未知";
    }
    return _public_time;
}
- (NSString *)brand_logo {
    return kIMAGE_URL([_brand_logo URLCharactersEncoding]);
}
- (NSString *)sex {
  //   性别0中性1女2男
    NSInteger sex = [_sex integerValue];
    switch (sex) {
        case 0:{
            return @"中性";
        }
            break;
        case 1:{
            return @"女";
        }
            break;
        case 2:{
            return @"男";
        }
            break;
            
    }
    return @"未知";
}
- (NSString *)creteTime_MadeIn {
    if (![self.establishmentDates isEqualToString:@""] && ![self.made_in isEqualToString:@""]) {
        return kSTRING_FORMAT(@"%@ | %@",self.establishmentDates, self.made_in);
    }
    return @" ";
}
@end
